home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
When In Rome
/
Read Me
< prev
next >
Wrap
Text File
|
1996-06-22
|
670b
|
17 lines
When In Rome
Mac Hack XI - MCMXCVI
© 1996 Barry Semo. All Rights Reserved
barrys@netcom.com
This INIT converts decimal numbers into Roman numerals, parsing a string for
embedded numbers. It patches DrawString and StringWidth. Not all numbers are
converted because not all text drawing goes through these traps. Large numbers
will have a lot of M's and look a bit weird but Roman numerals were never designed
for very large numbers.
The INIT uses the LString class from PowerPlant which makes string handling
very simple. This source file cannot be redistributed - go buy CodeWarrior:)
Thanks to Chris Russ for the idea. This hack was written during MacHack.